package com.lancoo.ccas52.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 选课轮次
 * </p>
 *
 * @author quin.song
 * @since 2023-06-19
 */
@Data
@Accessors(chain = true)
@TableName("css_task_round")
@ApiModel(value = "CssTaskRound对象", description = "选课轮次")
public class CssTaskRound implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer cssTaskId;

    @ApiModelProperty("轮次 1正 2补 3退")
    private Integer selectRound;

    @ApiModelProperty("阶段")
    private Integer stage;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("选课开始时间")
    private LocalDateTime beginTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("选课结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty("1:主修  2：辅修")
    private Integer studyNature;

    @ApiModelProperty("专业性质，1:公共课，2:专业课")
    private Integer majorProp;

    @ApiModelProperty("课程性质 1必修  2选修 3必修+选修")
    private Integer courseNature;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String sensitiveTime;
}
